package com.sky.service.admin;

import com.sky.dto.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.pojo.Employee;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.EmployeeVO;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);


    /**
     * 新增员工
     * @param dto 前端传递的参数
     * @return
     */
    Result<String> save(EmployeeDTO dto);

    /**
     * 分页查询员工信息
     * @param queryDTO
     * @return
     */
    Result<PageResult> queryPage(EmployeePageQueryDTO queryDTO);

    /**
     * 禁用启用员工账号
     * @param status 员工的状态
     * @param empId 员工的id
     * @return
     */
    Result<String> startOrStop(Integer status, Long empId);

    /**
     * 根据id查询员工共
     * @param id
     * @return
     */
    Result<EmployeeVO> selectById(Long id) throws CloneNotSupportedException;

    /**
     * 根据id更新员工的信息
     * @param dto
     * @return
     */
    Result<String> updateById(EmployeeDTO dto) throws CloneNotSupportedException;
}
